package com.forever7776.qiniu;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.concurrent.CountDownLatch;

/**
 * @author kz
 */
@Configuration
@EnableAutoConfiguration
@PropertySource({"classpath:application.yml", "classpath:config.properties"})
@ComponentScan(basePackages = "com.forever7776")
//启用异步
@EnableAsync
//定时任务
@EnableScheduling
//@ImportResource({"classpath:rabbitmq.xml"})
@ImportResource({"classpath:dubbo.xml"})
public class Application {

    public static void main(String[] args) throws InterruptedException {
        SpringApplication.run(Application.class, args);
        new CountDownLatch(1).await();
    }


}
